package com.sodaopen.study.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sodaopen.study.entity.Media;
import com.sodaopen.study.mapper.MediaMapper;
import com.sodaopen.study.service.MediaService;

@Service
public class MediaServiceImpl implements MediaService {

	
	@Autowired
	private MediaMapper mediaMapper;

	@Override
	public Media findById(Integer mediaId) {
		return mediaMapper.selectById(mediaId);
	}

	@Override
	public List<Media> findByParam() {
		return mediaMapper.selectByParam();
	}

	@Override
	public void saveMedia(Media media) {
		mediaMapper.insertMedia(media);
	}

}
